//
//  PopWebView.h
//  KidReading
//
//  Created by telen on 15/1/13.
//  Copyright (c) 2015年 刘赞黄Telen. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol PopWebViewDelegate <NSObject>

@optional
- (BOOL)popWebView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType;

@end

@interface PopWebView : UIView<UIWebViewDelegate>

@property(nonatomic,strong)UIWebView* webview;
@property(nonatomic,strong,readonly)UILabel* labelUrl;
@property(nonatomic,assign)BOOL isClickToBrower;//点击链接不在本窗口打开
@property(nonatomic,weak)id<PopWebViewDelegate> delegate;

//增加借口，支持透明
@property(nonatomic,assign)BOOL clear_Bg;
@property(nonatomic,assign)BOOL claar_DeviceWith;

- (void)autoLayOut;
- (void)autoLayOut_FullWebView;

+ (void)popWebViewWithData:(NSData*)data withURL:(NSString*)urlstring;

@end
